<?php

namespace App\Listeners;

use App\Events\DailyTask;
use App\Services\IntegralService;
use App\Services\MemberTaskService;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class GiveIntegral
{
    public function handle(DailyTask $event)
    {
        app(MemberTaskService::class)->handle($event->getMemberId(), $event->getType(), $event->getAdvId(), $event->getMineType());
    }
}
